projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abd15e0
)
* lisp/emacs-lisp/package.el (package-strip-rcs-id): Don't ignore errors
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 21 Nov 2020 00:28:34 +0000
(19:28 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 21 Nov 2020 00:28:34 +0000
(19:28 -0500)
Ignoring errors here just postpones the error and replaces a clear
"invalid version syntax" with a confusing "package lacks a version".
lisp/emacs-lisp/package.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/package.el
b/lisp/emacs-lisp/package.el
index d78a1a2856a31ce69e436eec84c9cce95c5fb167..9c37ce429a7bcea62a3873fd971042aa28f9fb02 100644
(file)
--- a/
lisp/emacs-lisp/package.el
+++ b/
lisp/emacs-lisp/package.el
@@
-2112,8
+2112,7
@@
Otherwise return nil."
(when str
(when (string-match "\\`[ \t]*[$]Revision:[ \t]+" str)
(setq str (substring str (match-end 0))))
- (ignore-errors
- (if (version-to-list str) str))))
+ (if (version-to-list str) str)))
(declare-function lm-homepage "lisp-mnt" (&optional file))